/*
 * Copyright (C) 2010 TTPASI, Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS-IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package ttpasi.jgenere.initial_port;

/**
 * Java port of InputError from PyGenere v 0.3.  See pygenere.py to learn more 
 * about the original PyGenere implementation, including author contact 
 * information and licensing and use terms.
 * <p/>
 * A simple runtime exception used by {@link VigCrack} to indicate user input 
 * errors.
 * <p/>
 * Note: While the cryptography implementations in jgenere.initial_port work 
 * correctly according to the provided test cases, they were not optimized or 
 * otherwise designed to make use of Java language and platform features.  They 
 * are simple ports of the original Python implementation of PyGenere, provided 
 * for academic purposes.  Visit the project web site at 
 * <a target="_blank" href="http://code.google.com/p/jgenere/">http://code.google.com/p/jgenere/</a> 
 * for preferred Java-based implementations of these cryptography algorithms.
 * <p/>
 * The original PyGenere v 0.3 InputError code:
 * <pre>
 * class InputError(Exception):
 * 
 *   """This class is only used for throwing exceptions if the user supplies
 *      invalid input (e.g. ciphertext is an empty string)."""
 * 
 *   pass
 * </pre>
 * 
 * @author  Bruce [com.gmail @ ProgrammerBruce]
 * @version 2010.1105
 */
class InputError extends RuntimeException
{
  private static final long serialVersionUID = 4299124413493296396L;

  InputError(String message)
  {
    super(message);
  }
}